/**
 * All rights Reserved
 *
 * @Title: BasicDataHandleConfig.java
 * @Package com.amigo.online.provider
 * @Description: (用一句话描述该文件做什么)
 * @author: zxy  QQ:1363320658
 * @date: 2018年12月15日 下午2:58:44
 * @version V1.0
 * @Copyright: 2018  All rights reserved.
 */
package com.amigo.online.provider;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import com.amigo.online.provider.sync.abs.ColumnHandleMap;

/**
 * @version: V 1.0.0
 * @Description: （对类进行功能描述）
 * @author: zxy QQ:1363320658
 * @date: 2018年12月15日 下午2:58:44
 *
 */

@Component
@Configuration
public class BasicDataHandleConfig {

    protected static final Logger logger = LoggerFactory.getLogger(BasicDataHandleConfig.class);

    @Bean("mongovideo")
    @ConfigurationProperties(prefix = "sync.data.source.mongo.video")
    public ColumnHandleMap mongoVideoHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("mongouser")
    @ConfigurationProperties(prefix = "sync.data.source.mongo.user")
    public ColumnHandleMap mongoUserHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("mongogoods")
    @ConfigurationProperties(prefix = "sync.data.source.mongo.goods")
    public ColumnHandleMap mongoGoodsHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("mongomerchant")
    @ConfigurationProperties(prefix = "sync.data.source.mongo.merchant")
    public ColumnHandleMap mongoMerchantHandleMap() {
        return new ColumnHandleMap();
    }


    @Bean("solrvideo")
    @ConfigurationProperties(prefix = "sync.data.source.solr.video")
    public ColumnHandleMap solrVideoHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("solruser")
    @ConfigurationProperties(prefix = "sync.data.source.solr.user")
    public ColumnHandleMap solrUserHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("solrmusic")
    @ConfigurationProperties(prefix = "sync.data.source.solr.music")
    public ColumnHandleMap solrMusicHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("solrmerchant")
    @ConfigurationProperties(prefix = "sync.data.source.solr.merchant")
    public ColumnHandleMap solrMerchantHandleMap() {
        return new ColumnHandleMap();
    }

    @Bean("solrgoods")
    @ConfigurationProperties(prefix = "sync.data.source.solr.goods")
    public ColumnHandleMap solrGoodsHandleMap() {
        return new ColumnHandleMap();
    }


}
